package com.bw.service;

import com.bw.bean.Login;
import com.bw.bean.Stu;
import com.bw.dao.StuDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class StuServiceImpl implements StuService {
    @Resource
    private StuDao stuDao;
    @Override
    public List<Stu> list() {
        return stuDao.list();
    }

    @Override
    public Login sel(Login login) {
      return   stuDao.sel(login);
    }

    @Override
    public void insert(Stu stu) {
        stuDao.insert(stu);
    }
}
